<demo>
支持 disabled readonly error
</demo>
<template>
  <Input :modelValue="value"
         disabled></Input>
  <Input :modelValue="value1"
         readonly></Input>
  <Input :error="error"></Input>
</template>

<script lang="ts">
import Input from "../../lib/Input.vue";
import { ref } from "vue";
export default {
  components: {
    Input,
  },
  setup(props) {
    const value = ref("disabled");
    const value1 = ref("readonly");
    const error = ref("姓名不能少于两个字");
    return {
      value,
      value1,
      error,
    };
  },
};
</script>

<style></style>
